package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from sys_user where username = #{username}")
    User selectByName(String username);

    Page<User> findUserPage(UserDto userDto);

    int insertUser(User user);

    int updateByPrimaryKeySelective(User user);

    void deleteByPrimaryKey(Long userIds);

    User selectByPrimaryKey(Long id);

    List<User> selectByRealName(String realName);
}
